/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.bs.converters;

import java.math.BigDecimal;
import org.jdesktop.beansbinding.Converter;

/**
 *
 * @author Bone
 */
public class ConversorSimNao extends Converter<Character, String> {

    @Override
    public String convertForward(Character value) {
        return String.valueOf(value);
    }

    

    @Override
    public Character convertReverse(String value) {
        if(value.equals("SIM")){
            return new Character('S');
        }else{
            return new Character('N');
        }
    }

}
